package com.tboss.template.common.utils;

import com.tboss.template.common.type.CodeHiddenType;


public class CustomTagLib {
	
	public static int lastIndexOf(String text, String searchString){
		return text.lastIndexOf(searchString);
	}
	
	public static String chgHtmlNewLine(String text){
		return text.replaceAll("\\n", "<br />");
	}
	
	public static String getCodeType(String key){
		return CodeHiddenType.get(key).getValue();
	}

}
